<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻动态添加</title>
<script type="text/javascript" src="/anbo/Public/Js/jquery.js"></script>

<link href="/anbo/Public/Css/green/g_main.css" type="text/css" rel="stylesheet" />
<link href="/anbo/Public/Css/green/edit.css" type="text/css" rel="stylesheet" />

<script>
function  switch_table(index){
	var group_num="0";
	for(var i=1;i<=group_num;i++){
	   if(i==index){
		   $("#td_"+i).removeClass();
		   $("#td_"+i).addClass("td_dis");
		   $("#table_"+i).css("display","block");
	   }else{
		   $("#td_"+i).removeClass();
		   $("#td_"+i).addClass("td_undis");
		   $("#table_"+i).css("display","none"); 
	   }
	}
}
</script>
</head>

<body>
<div class="edit">
<div class="title-div"><ul><li class="title">添加信息</li><li class="back"><a href="javascript:history.go(-1);">[ 后退 ]</a></li></ul></div>
<div class="edittable">


<table border="0" cellpadding="0" cellspacing="0" id="editarea">
<form id="form2" name="form2" method="post" action="/anbo/index.php/admin/news/insert">

			 <tr><td>新闻标题</td><td><input name="news_title" id="news_title" type="text" value=""  size="50"></td><td>&nbsp;</td></tr>			 <tr><td colspan='3' align='center'>内容  &nbsp;</td></tr>
             <tr><td colspan='3' align='center'>
		     <textarea name="news_content" id="news_content" style="display:none"></textarea>
			 <script type="text/javascript" charset="utf-8" src="/anbo/Public/Js/editor/kindeditor.js"></script>
             <script type="text/javascript">
             KE.show({
               id : "news_content",
               cssPath : "/anbo/Public/Js/editor/index.css",
			   width:620,
			   height:300,
			   resizeMode:1
             });
             </script>
			 </td></tr>		    <script language="javascript" src="/anbo/Public/Js/My97DatePicker/WdatePicker.js"></script>
			<tr><td>日期</td><td><input name="datetime" id="datetime" type="text" value="2012-05-29"  size="" readonly onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" ></td><td>&nbsp;</td></tr><tr><td colspan="3" align="center"><input type="submit" name="btn2" id="btn2" value="添 加"  onclick="return true;this.disabled=true"/>
  <input type="reset" name="btn3" id="btn3" value="返 回"/></td></tr>
<input type="hidden" name="__hash__" value="d049e451eedd224cd48ef855f33064f5" /></form>
</table>



</div>
</div>
<script type="text/javascript">
	var ea = document.getElementById('editarea').getElementsByTagName('tr');
	for(var i=0;i<ea.length;i++){
		ea[i].childNodes[0].style.background = '#EEF8F9';	
	}
	var imga = document.getElementsByTagName('img');
	for(var i=0;i<imga.length;i++){
		if(imga[i].parentNode.nodeName.toLowerCase() == 'a'){
			imga[i].parentNode.style.border= '0px';
			imga[i].parentNode.style.background= '#FFF';
		}
	}
</script>
</body>
</html>